package fat
{

import com.fit4as.fit.*;

public class TableParseFixture extends ColumnFixture {

    public var HTML : String;
    public var Row : int;
    public var Column : int;

    public function CellBody() : String {
        return cell().body;
    }

    public function CellTag() : String {
        return cell().tag;
    }

    public function RowTag() : String {
        return row().tag;
    }

    public function TableTag() : String {
        return table().tag;
    }

    private function table() : Parse {
        return Parse.createParse(HTML);
    }

    private function row() : Parse {
        return table().at(0, Row - 1);
    }

    private function cell() : Parse {
        return row().at(0, Column - 1);
    }
}
}